package models

type Auth struct {
	ID int `json:"id" gorm:"primary_key"`
	Username string `json:"user_name"`
	Password string `json:"password"`
}

/**
验证账户密码
 */
func CheckAuth(userName,password string) (auth Auth){
	db.Model(&Auth{}).Where(Auth{Username: userName,Password: password}).First(&auth)
	return
}

